package com.zjmzxfzhl.modules.purchase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zjmzxfzhl.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 【】实体类
 *
 * @author 庄金明
 */
@Getter
@Setter
@TableName("T_PURCHASE_SUPPLIER")
public class PurchaseSupplier extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商名称
     */
    @NotNull
    @Length(max = 100)
    private String supplierName;

    /**
     * 备注
     */
    @Length(max = 256)
    private String comment;

    private String contactPerson;

    private String contactPhone;

    private String bankAccount;

    private String bankName;

}
